-- GENERATED SPELL FOR [Murkblood Twin] --


function spell0_18399(pUnit, Event) --@Eviscerate,n/a--
pUnit:FullCastSpellOnTarget(15692,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18399', 616, 1)
end

function spell1_18399(pUnit, Event) --@Mutilate,n/a--
pUnit:FullCastSpellOnTarget(32319,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18399', 549, 1)
end

function spell2_18399(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18399', 578, 1)
end

function Sorts_18399(pUnit, Event)
local choix_sorts_18399 = math.random(0, 2)
if choix_sorts_18399 == 0 then
pUnit:RegisterEvent('spell0_18399', 1, 1)
end
if choix_sorts_18399 == 1 then
pUnit:RegisterEvent('spell1_18399', 1, 1)
end
if choix_sorts_18399 == 2 then
pUnit:RegisterEvent('spell2_18399', 1, 1)
end
end

function mob18399_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18399', math.random(1500, 3000), 1)
end

function mob18399_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18399_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18399_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18399, 1, 'mob18399_Action')
RegisterUnitEvent(18399, 2, 'mob18399_Leave')
RegisterUnitEvent(18399, 3, 'mob18399_Kill')
RegisterUnitEvent(18399, 4, 'mob18399_Die')
